Cracking Digital VLSI Verification Interview: Interview Success by Ramdas Mozhikunnath & Robin Garg

Cracking Digital VLSI Verification Interview: Interview Success by Ramdas Mozhikunnath & Robin Garg

Author:Ramdas Mozhikunnath & Robin Garg
Language: eng
Format: mobi, azw3, epub
Publisher: Ramdas Mozhikunnath & Robin Garg
Published: 2016-03-12T22:00:00+00:00


class Packet;

//full definition here

endclass

To avoid this problem, thePacket Class can be forward declared before the full definition. This concept is called forward declaration.

typedef Packet; //forward declaration

class Statistics;

Packet p1;

endclass

class Packet;

//full definition here

endclass

Analyze following code and explain if there are any issues with code?

task gen_packet(Packet pkt);

pkt = new();

pkt.dest = 0xABCD;

endtask

Packet pkt;

initial begin

gen_packet(pkt);

$display(pkt.dest);

end



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.